//
//  Common.swift
//  LGWeibo
//
//  Created by 李更 on 8/10/16.
//  Copyright © 2016 itcast. All rights reserved.
//

import UIKit

//帐号密码
let WBName = "18717999574"
let WBPasswd = "ligeng2010003842"

//通知

let WBSWITCHROOTVCNOTIFICTION = "WBSWITCHROOTVCNOTIFICTION"


let WBAppKey = "3460228956"
let WBAppSecret = "6b81e55d412d16ea669c2fdef013f92b"
let WBRedirect_uri = "http://www.baidu.com"

// 屏幕的宽&高
let SCREENW = UIScreen.mainScreen().bounds.width
let SCREENH = UIScreen.mainScreen().bounds.height


func RGB(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat = 1) -> UIColor {
    
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: alpha)
}

func RandomColor() -> UIColor {
    let r = CGFloat(random()%256)
     let g = CGFloat(random()%256)
     let b = CGFloat(random()%256)
    
    
    return   RGB(r, green: g, blue: b)
    
}

